package com.itheima.bigevent.mapper;

import com.itheima.bigevent.pojo.Article;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author curry
* @description 针对表【article】的数据库操作Mapper
* @createDate 2024-08-18 16:12:47
* @Entity com.itheima.bigevent.pojo.Article
*/
@Mapper
public interface ArticleMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKey(Article record);
    List<Article> selectList(Integer userid, Integer categoryId, String state);
    List<Article> selectList(Integer categoryId, String state);

}
